package test;

import java.util.Scanner;

public class Year {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int year = scan.nextInt();
		boolean leapYear = year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
		if (leapYear) {
			System.out.println("闰年366天");
		} else
			System.out.println("平年365天");
	}
}
